﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ListItemEditor.UI
{
    public class DataGridViewMultiSelectColumn : DataGridViewTextBoxColumn
    {
        public interface ITranslateSelectedValues
        {
            List<object> ParseSelectedValues(object value);
            object FormatSelectedValues(List<object> selectedIDs);
            object FormatDisplayValue(object value);
        }

        public DataGridViewMultiSelectColumn()
        {
            DataGridViewMultiSelectCell cell = new DataGridViewMultiSelectCell();
            this.CellTemplate = cell;
        }

        public object Choices { get; set; }
        public string DisplayMember { get; set; }
        public string ValueMember { get; set; }
        public ITranslateSelectedValues SelectedValuesTranslator { get; set; }
    }
}